package com.donger.upms.biz.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.donger.upms.api.entity.SysUserRole;
import com.donger.upms.biz.mapper.SysUserRoleMapper;
import com.donger.upms.api.service.ISysUserRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户与角色对应关系 服务实现类
 * </p>
 *
 * @author xyx
 * @since 2019-01-12
 */
@Service("sysUserRoleService")
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements ISysUserRoleService {

    /**
     * 根据UserID 删除 用户角色中间表
     *
     * @param idList 用户ID列表
     * @return 成功标记
     */
    @Override
    public Boolean deleteByUserIds(List<Long> idList) {
        return baseMapper.deleteByUserIds(idList);
    }
}
